/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package helloworldfromnetbeans;

import java.awt.EventQueue;
import javax.swing.JFrame;

/**
 *
 * @author HUNG
 */
public class HelloWorldFromNetbeans {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        Runnable runner = new Runnable() {

            @Override
            public void run() {
                JFrame.setDefaultLookAndFeelDecorated(true);
                JFrame frame = new JFrame("Demo ");
                frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                
                frame.setLocationRelativeTo(null);
                frame.setSize(300, 200);
                frame.setVisible(true);
            }
        };
        EventQueue.invokeLater(runner);
    }
    
}
